<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div>
            <form method="post" action="">
                <input type="text" name="title" value="<?php echo $content['title']; ?>" /><br/>
                <select name="id_category">
                    <?php foreach ($category as $cat): ?>
                        <option value="<?php echo $cat['id']; ?>" <?php echo $cat['id'] == $content['id_category'] ? 'selected' : ''; ?>><?php echo $cat['name']; ?></option>
                    <?php endforeach; ?>
                </select>
                <input type="submit" name="submit" value="Post" />
            </form>
            <div style="width: 600px;">
                <?php for ($i = 1; $i <= $content['total']; $i++): ?>
                    <img src="<?php echo base_url(); ?>uploads/knots/<?php echo $content['id'] . '/' . $i . '-' . $content['featured'] . '.jpg'; ?>" width="50px"/>
                <?php endfor; ?>
            </div>
        </div>
    </body>
</html>